package com.jl.card.parse;

import com.jl.card.JL;

public class INSPoll {

	public static String getDescription(int ins) {
		String des = "UNKNOWN";
		switch ((byte) ins) {
		case JL.INS_ACTIVATE_FILE:
			des = "ACTIVATE_FILE";
			break;
		case JL.INS_APPEND_RECORD:
			des = "APPEND_RECORD";
			break;
		case JL.INS_CHANGE_CHV:
			des = "CHANGE_CHV";
			break;
		case JL.INS_CREATE_FILE:
			des = "CREATE_FILE";
			break;
		case JL.INS_DEACTIVATE_FILE:
			des = "DEACTIVATE_FILE";
			break;
		case JL.INS_DELETE_FILE:
			des = "DELETE_FILE";
			break;
		case JL.INS_DISABLE_CHV:
			des = "DISABLE_CHV";
			break;
		case JL.INS_ENABLE_CHV:
			des = "ENABLE_CHV";
			break;
		case JL.INS_ENVELOPE:
			des = "ENVELOPE";
			break;
		case JL.INS_ERASE_BINARY1:
			des = "ERASE_BINARY1";
			break;
		case JL.INS_ERASE_BINARY2:
			des = "ERASE_BINARY2";
			break;
		case JL.INS_ERASE_RECORD:
			des = "ERASE_RECORD";
			break;
		case JL.INS_EXTAUTHENTICATE:
			des = "EXTAUTHENTICATE";
			break;
		case JL.INS_FETCH:
			des = "FETCH";
			break;
		case JL.INS_GENERAL_AUTH1:
			des = "GENERAL_AUTH1";
			break;
		case JL.INS_GENERAL_AUTH2:
			des = "GENERAL_AUTH2";
			break;
		case JL.INS_GENERATE_KEYPAIR:
			des = "GENERATE_KEYPAIR";
			break;
		case JL.INS_GET_CHALLENGE:
			des = "GET_CHALLENGE";
			break;
		case JL.INS_GET_DATA:
			des = "GET_DATA";
			break;
		case JL.INS_GET_RESPONSE:
			des = "GET_RESPONSE";
			break;
		case JL.INS_GENERATE_AC:
			des = "GENERATE_AC";
			break;
		case JL.INS_INCREASE:
			des = "INCREASE";
			break;
		case JL.INS_INTAUTH:
			des = "INTAUTH";
			break;
		case JL.INS_MANAGE_CHANNEL:
			des = "MANAGE_CHANNEL";
			break;
		case JL.INS_MANAGE_SE:
			des = "MANAGE_SE";
			break;
		case JL.INS_MANAGE_SECURE_CHANNEL:
			des = "MANAGE_SECURE_CHANNEL";
			break;
		// case JL.INS_PERFORM_SCQL_OP:
		// des = "PERFORM_SCQL_OP";
		// break;
		// case JL.INS_PERFORM_TRANS_OP:
		// des = "PERFORM_TRANS_OP";
		// break;
		// case JL.INS_PERFORM_USER_OP:
		// des = "PERFORM_USER_OP";
		// break;
		case JL.INS_PSO:
			des = "INS_PSO";
			break;
		case JL.INS_PUT_DATA:
			des = "PUT_DATA";
			break;
		case JL.INS_READ_BINARY:
			des = "READ_BINARY";
			break;
		case JL.INS_READ_RECORD:
			des = "READ_RECORD";
			break;
		case JL.INS_RETRIEVE_DATA:
			des = "RETRIEVE_DATA";
			break;
		case JL.INS_SEARCH_BINARY1:
			des = "SEARCH_BINARY1";
			break;
		case JL.INS_SEARCH_BINARY2:
			des = "SEARCH_BINARY2";
			break;
		case JL.INS_SEARCH_RECORD:
			des = "SEARCH_RECORD";
			break;
		case JL.INS_SELECT_FILE:
			des = "SELECT_FILE";
			break;
		case JL.INS_SET_DATA:
			des = "SET_DATA";
			break;
		case JL.INS_STATUS:
			des = "STATUS";
			break;
		case JL.INS_TERMINAL_CAPABILITY:
			des = "TERMINAL_CAPABILITY";
			break;
		case JL.INS_TERMINAL_PROFILE:
			des = "TERMINAL_PROFILE";
			break;
		case JL.INS_TERMINAL_RESPONSE:
			des = "TERMINAL_RESPONSE";
			break;
		case JL.INS_TERMINATE_CARD:
			des = "TERMINATE_CARD";
			break;
		case JL.INS_TERMINATE_DF:
			des = "TERMINATE_DF";
			break;
		case JL.INS_TERMINATE_EF:
			des = "TERMINATE_EF";
			break;
		case JL.INS_TRANSACT_DATA:
			des = "TRANSACT_DATA";
			break;
		case JL.INS_UNBLOCK_CHV:
			des = "UNBLOCK_CHV";
			break;
		case JL.INS_UPDATE_BINARY:
			des = "UPDATE_BINARY";
			break;
		case JL.INS_UPDATE_RECORD:
			des = "UPDATE_RECORD";
			break;
		case JL.INS_VERIFY:
			des = "VERIFY";
			break;
		case JL.INS_WRITE_BINARY:
			des = "WRITE_BINARY";
			break;
		case JL.INS_WRITE_RECORD:
			des = "WRITE_RECORD";
			break;
		default:
			des = "UNKNOWN";
			break;
		}
		return des;
	}

}
